/**
 * 安卓白金英雄坛制作组 <br>
 * 文件名：BlockButton.java <br>
 * 创建时间：2013-7-23 下午5:52:35 <br>
 * 所属项目：GmudEX <br>
 * @author 12548 <br>
 */
package lostland.gmud.exv2.ui.core;

import lostland.gmud.exv2.Assets;
import lostland.gmud.exv2.Game;
import lostland.gmud.exv2.blgframework.impl.BLGGraphics;

/**
 * 类名：BlockButton <br>
 * 说明：左边是一个方块的按钮
 *
 * @author 12548
 */
public abstract class BlockButton extends GmudWindow {

	/**
	 * @param instance
	 * @param x
	 * @param y
	 * @param width
	 * @param height
	 */
	public BlockButton(int x, int y, int width, int height) {
		super(x, y, width, height);
	}


	@Override
	protected void drawBackground() {
		BLGGraphics g = (BLGGraphics) Game.getInstance().getGraphics();
//		g.drawRect(x, y, width, height, GameConstants.BG_COLOR);
		if (bordered)
			g.drawPixmap(Assets.filled, x, y);
		else
			g.drawPixmap(Assets.empty, x, y);
	}

}
